/**
 * 
 */
package org.dse.analysis;

/**
 * The class is the return of the segmenter. The Token represents the result of
 * the segmenter. It contains the word and its start position in the whole text.
 * 
 * @author zhangchen
 * 
 */
public class Token {

	private int startPos;
	private String content;

	/**
	 * The constructor.
	 * 
	 * @param content
	 *            the word content
	 * @param startPos
	 *            its start position in the whole text
	 */
	public Token(String content, int startPos) {
		this.content = content;
		this.startPos = startPos;
	}

	/**
	 * Get the start position.
	 * 
	 * @return the start position
	 */
	public int getStartPos() {
		return startPos;
	}

	/**
	 * Set the start position.
	 * 
	 * @param startPos
	 *            the value to be set
	 */
	public void setStartPos(int startPos) {
		this.startPos = startPos;
	}

	/**
	 * Get the word content.
	 * 
	 * @return the word content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * Set the word content.
	 * 
	 * @param content
	 *            the value to be set
	 */
	public void setContent(String content) {
		this.content = content;
	}
}
